package com.xxx.gmail.UI;

import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JToolBar;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JTextField;

public class BaseDetailsPane extends BasePane {
	private JTextField textField;

	/**
	 * Create the panel.
	 */
	public BaseDetailsPane() {
		setLayout(new BorderLayout(0, 0));
		
		JPanel panel = new JPanel();
		FlowLayout flowLayout = (FlowLayout) panel.getLayout();
		flowLayout.setAlignment(FlowLayout.LEFT);
		add(panel, BorderLayout.NORTH);
		
		JToolBar toolBar = new JToolBar();
		panel.add(toolBar);
		
		JButton button_print = new JButton("打印");
		toolBar.add(button_print);
		
		JButton button_help = new JButton("帮助");
		toolBar.add(button_help);
		
		JButton button_close = new JButton("关闭");
		toolBar.add(button_close);
		
		JToolBar toolBar_1 = new JToolBar();
		panel.add(toolBar_1);
		
		JButton button_save = new JButton("保存");
		toolBar_1.add(button_save);
		
		JButton button_delete = new JButton("删除");
		toolBar_1.add(button_delete);
		
		JButton button_add = new JButton("新增");
		toolBar_1.add(button_add);
		
		JToolBar toolBar_2 = new JToolBar();
		panel.add(toolBar_2);
		
		JButton button_first = new JButton("首条");
		toolBar_2.add(button_first);
		
		JButton button_last = new JButton("上一条");
		toolBar_2.add(button_last);
		
		JButton button_next = new JButton("下一条");
		toolBar_2.add(button_next);
		
		JButton button_end = new JButton("末条");
		toolBar_2.add(button_end);
		
		textField = new JTextField();
		toolBar_2.add(textField);
		textField.setColumns(10);
		
		JButton button_goto = new JButton("跳转");
		toolBar_2.add(button_goto);

	}

}
